/**
  ******************************************************************************
  * @file    bsp_led.c
  * @author  luoxiao
  * @version V1.0
  * @date    2019-05-31
  * @brief   led interface function
  ******************************************************************************
  * @attention
  *
  *
  ******************************************************************************
  */
  
#include "bsp_debug_led.h"   

 /**
  * @brief  init LED GPIO
  * @param  
  * @retval 
  */
void LED_Init(void)
{		
	GPIO_InitTypeDef GPIO_InitStructure;

	RCC_AHB1PeriphClockCmd ( RCC_AHB1Periph_GPIOC, ENABLE); 
	
	//GPIOC pin13, 14, 15													   
	GPIO_InitStructure.GPIO_Pin = GPIO_Pin_14 | GPIO_Pin_15;	
	GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;   
	GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
	GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
	GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz; 
	GPIO_Init(GPIOC, &GPIO_InitStructure);	
	
	GPIO_SetBits(GPIOC, GPIO_Pin_14 | GPIO_Pin_15);
}
/*********************************************END OF FILE**********************/
